<template>
  <div id="app">
    <tabbar></tabbar>
    <router-view />
  </div>
</template>
<script>
import tabbar from "@/components/Tabbar";
import { mapActions } from "vuex";
export default {
  components: {
    tabbar,
  },
  mounted() {
    this.changeShow();
    // console.log(this.$route)
  },
  updated() {
    this.changeShow();

    // console.log(this.$route)
  },
  methods: {
    ...mapActions("header", ["Changeheader"]),
    ...mapActions("title", ["changeTitle"]),

    changeShow() {
      let path = this.$route.name;
      this.Changeheader(path);
      this.changeTitle(path);
    },
  },
};
</script>


<style lang="scss">
* {
  padding: 0;
  margin: 0;
}
html {
  font-size: 2.6666667vw;
  font-family: Helvetica;
}

ul li {
  list-style: none;
}
a {
  text-decoration: none;
}
#app {
  position: relative;
  font-size: 1.7rem;
}
</style>

